package com.cloud.admin.feign;


import com.cloud.admin.beans.dto.UserDTO;
import com.cloud.admin.feign.fallback.UserServiceFallback;
import com.cloud.common.base.Result;
import com.cloud.common.client.CloudServiceList;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户信息
 * @author Aijm
 * @since 2019/5/11
 */
@FeignClient( value = CloudServiceList.CLOUD_ADMIN , fallback = UserServiceFallback.class)
public interface IUserService {

    /**
     * 获取指定用户全部信息
     *
     * @return 用户信息
     */
    @GetMapping("/user/info/{username}")
    public Result<UserDTO> info(@PathVariable String username);
}
